import type { ColumnsType } from 'ant-design-vue/es/table';

// 定义 ListItem 类型并导出
export interface ListItem {
  address: string;
  amount: number;
  bankAccount: string;
  bankName: string;
  companyPhone: string;
  email: string;
  id: number;
  invoiceTitle: string;
  invoiceType: number;
  invoiceUrl: string;
  orderNo: string;
  phone: string;
  refuseReason: string;
  status: number;
  taxNo: string;
  userId: number;
}

const columns: ColumnsType<ListItem> = [
  {
    title: '订单号',
    dataIndex: 'orderNo',
    key: 'orderNo',
    fixed: 'left',
    width: 200,
    align: 'center',
  },
  {
    title: '发票状态',
    dataIndex: 'status',
    key: 'status',
    align: 'center',
    width: 90,
  },
  {
    title: '发票抬头',
    dataIndex: 'invoiceTitle',
    key: 'invoiceTitle',
    align: 'center',
  },
  {
    title: '纳税识别号',
    dataIndex: 'taxNo',
    key: 'taxNo',
    align: 'center',
  },
  {
    title: '公司地址',
    dataIndex: 'address',
    key: 'address',
    align: 'center',
  },
  {
    title: '公司电话',
    dataIndex: 'companyPhone',
    key: 'companyPhone',
    align: 'center',
    width: 140,
  },
  {
    title: '开户银行',
    dataIndex: 'bankName',
    key: 'bankName',
    align: 'center',
  },
  {
    title: '开户账号',
    dataIndex: 'bankAccount',
    key: 'bankAccount',
    align: 'center',
  },
  {
    title: '开票金额',
    dataIndex: 'amount',
    key: 'amount',
    align: 'center',
    width: 120,
  },
  {
    title: '发票类型',
    dataIndex: 'invoiceType',
    key: 'invoiceType',
    align: 'center',
    width: 120,
  },
  {
    title: '开票人联系电话',
    dataIndex: 'phone',
    key: 'phone',
    align: 'center',
    width: 160,
  },
  {
    title: '开票人邮箱',
    dataIndex: 'email',
    key: 'email',
    align: 'center',
  },
  {
    title: '操作',
    dataIndex: 'handle',
    key: 'handle',
    fixed: 'right',
    width: 160,
    align: 'center',
  },
];

export default columns;
